package com.reder.practice.common.enums.state;

import com.reder.practice.common.enums.Statable;
import lombok.Getter;

/**
 * @author Red
 * <p>Email: 1318944013@qq.com</p>
 * <p>created by 2019/09/23 10:26</p>
 */
@Getter
public enum CommentState implements Statable {

    COMMENT_SUCCESS(Statable.SUCCESS_CODE, "评论操作成功"),
    COMMENT_PARAM_ERROR(-1, "评论参数不完整"),
    COMMENT_DELETE_ERROR(-1, "删除评论失败"),
    COMMENT_IS_NOT_EXIST(-1, "该评论不存在"),
    COMMENT_ADD_ERROR(-1, "新增评论失败");

    int code = Statable.SUCCESS_CODE;
    String msg = null;

    CommentState(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
